#ifndef THROWING_ERROR_POLICY_H
#define THROWING_ERROR_POLICY_H

#include "socket_exception.h"
#include "lost_connection_exception.h"

#include <string>
using namespace std;

namespace network {
	class throwing_error_policy {
	public:
		throwing_error_policy() {}
		~throwing_error_policy() {}

		void msg(const string &str) const
		{
			throw(network::socket_exception(str));
		}

		void connection_lost() const
		{
			throw(network::lost_connection_exception());
		}
	private:
	};
}

#endif
